<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>WelCome to HuNan University JudgeOnline</title>
    <link rel="stylesheet" href="../style/nav.css" >
    <!-- 最新版本的 Bootstrap 核心 CSS 文件 -->
    <link rel="stylesheet" href="../css/bootstrap.min.css">

    <!-- 可选的 Bootstrap 主题文件（一般不用引入） -->
    <link rel="stylesheet" href="../css/bootstrap-theme.min.css">

    <!-- jQuery (Bootstrap 的所有 JavaScript 插件都依赖 jQuery，所以必须放在前边) -->
    <script src="../js/jquery-3.3.1.min.js"></script>
    <!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
    <script src="../js/bootstrap.min.js"></script>
    <script src="./js/controller.js"></script>
    <script src="./js/myajax.js"></script>
</head>
<body>
    <div class="container">
        <!-- page head -->
        <div class="head-logo">
            <img alt="hnulogo" src="../img/hnulogo.gif">
            <h2>Welcome To Hunan University Judge Online</h2>
            <img alt="acmlogo" src="../img/acm.png" class="img-circle icpc" />
        </div>
        <div class="masthead">
            <ul class="nav nav-pills">
                <li id="home"><a href="../index">Home</a></li>
                <li id="problem"><a href="problem">Problem</a></li>
                <li id="status"><a href="status">Status</a></li>
                <li id="rank"><a href="rank">Rank List</a></li>
                <li id="discuss"><a href="discuss">Discuss</a></li>
                <li id="printer"><a href="printer">Printer</a></li>
                <li class="pull-right" id="info">
                    <button type="button" class="btn btn-primary" onclick="window.location='login'">Login</button>
                </li>
            </ul>
        </div>

        <!-- Site content-->
        <div class="row margin-top-2">
            <div class="col-md-12 column">
                <div class="col-md-8 colum">
                    <div class="text-center">
                        <h3 id="title" style="display: inline"></h3>
                        <span id="type" class="label label-success"></span>
                        <!-- <span id="type" class="label label-warning">Private</span> -->
                    </div>
                    <table class="table table-hover" id="tableList">
                        <thead>
                            <tr>
                                <th style="width: 10%">
                                    Solved
                                </th>
                                <th style="width: 15%">
                                    Problem
                                </th>
                                <th>
                                    Title
                                </th>
                                <th style="width: 20%">
                                    AC/Submit
                                </th>
                            </tr>
                        </thead>
                    </table>
                </div>
                <div class="col-md-4 colum">
                    <div class="panel panel-info margin-top-4">
                        <div class="panel-heading">
                            <h3 class="panel-title">
                                Notification
                            </h3>
                        </div>
                        <div class="panel-body" id="notification">
                        </div>
                    </div>
                </div>
            </div>
            <div id="state" class="col-md-12 column">
                <div>
                    <span class="current-time col-md-2">Current Time:</span>
                    <span id="now"></span>
                </div>
                <div>
                    <span class="end-time col-md-2">End Time:</span>
                    <span id="end"></span>
                </div>
            </div>
        </div>
  
        <!-- Site footer -->
        <footer class="footer">
            <p>&copy; HNU ACM Team | <a href="#">Contact Us</a> | Version 2018</p>
            <p>Developer：balabala</p>
        </footer>
  
    </div>
</body>
<script src="./js/afterload.js"></script>
<script>
    var contestId = getUrlVar("contestId");
    contestInfo(contestId);
    contestProblemList(contestId);
    $("#problem").addClass("active");
    
</script>
</html>